package com.rt.tmpt.dto;

import com.inspiresoftware.lib.dto.geda.annotations.Dto;
import com.inspiresoftware.lib.dto.geda.annotations.DtoCollection;
import com.inspiresoftware.lib.dto.geda.annotations.DtoField;
import com.rt.tmpt.bean.A2Dept;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

@Data
@Dto("com.rt.tmpt.bean.A2Company")
public class A2CompanyDto implements Serializable{
	private static final long serialVersionUID = 1L;

	@DtoField
	private Long id ;//公司ID ;
	@DtoField
	private String name;// 公司名 ;

	@DtoField
	private Integer deleteFlag ;//default0,1已删除
	@DtoField(readOnly=true)
	private Timestamp createDate ;
	@DtoField
	private Timestamp modifyDate ;
	@DtoField
	private String createMan ;
	@DtoField
	private String modifyMan ;

	@DtoCollection(
			value="a2DeptList",
			dtoToEntityMatcher=A2Company_DeptMatcher.class,
			entityGenericType= A2Dept.class,
			dtoBeanKey="a2DeptDto",
			entityBeanKeys="a2Dept",
			readOnly=true
	)
	private List<A2DeptDto> a2DeptDtoList = new ArrayList<A2DeptDto>();

	
}
